﻿#parse("partials/header.html") #parse("partials/sidebar.html")
<script>
    jQuery(document).ready(function () {

        //jQuery("#formID").validate();

        jQuery("#mws-validate").submit(
            function () {
                if (jQuery("#mws-validate").valid() == true) {
                    jQuery.blockUI();
                    var post_data = jQuery(this).serialize();
                    var form_action = jQuery(this).attr("action");
                    var form_method = jQuery(this).attr("method");

                    jQuery.ajax({
                        type: form_method,
                        url: form_action,
                        cache: false,
                        dataType: "json",
                        data: post_data,
                        success: function (data) {
                            jQuery.unblockUI();
                            $("#notif").html(data.strNotification);
                            $("#Id").val(data.id);

                        },
                        error: function (data) {
                            jQuery.unblockUI();
                        },
                        complete: function () {
                            window.scrollTo(0, 0);

                        }
                    });
                }
                return false;
            });

       
      



    });


  
</script>
<div id="mws-container" class="clearfix">
    <div class="container">
        <form method="post" action="/master/suppliertype/savesuppliertype" class="crud" id="mws-validate">
        <div class="mws-panel grid_8">
            <div class="mws-panel-header">
                <span class="mws-i-24 i-calendar-today">Supplier Type</span>
            </div>
            <div class="mws-panel-body">
                <div class="mws-panel-toolbar top clearfix">
                    <ul>
                        <li><a class="mws-ic-16 ic-arrow-left" href="/master/suppliertype/" title="Accept">Back
                            To Supplier Type List</a></li>
                        <li><a class="mws-ic-16 ic-application-view-list" href="/master/suppliers/" title="Accept">List Suppliers</a></li>
                    </ul>
                </div>
                <div id="notif" >
                    $Notification
                </div>
                <div class="mws-form">
                
                    <div class="grid_8">
                        <div class="mws-form-inline">
                            <div class="mws-form-row">
                                <label>
                                    Name </label>
                                <div class="mws-form-col-2-8 alpha">
                                    <div class="mws-form-item">
                                        <input type="hidden" value="$suppliertype.Id" name="Id" id="Id" />
                                        <input class="required text-input, lf mws-textinput" id="NameValue" name="NameValue" type="text" value="$suppliertype.NameValue" />
                                    </div>
                                </div>
                            </div>

                          
                           
                        </div>
                    </div>
                  
                     <div class="clear15">
                    </div>
                   

                    <div class="mws-button-row">
                        <input name="btnAction" class="mws-button red" type="submit" value="Save" />
                        <input class="mws-button gray" type="reset" value="Reset" />
                    </div>
                </div>
            </div>
        </div>
        <hr />
        </form>
    </div>
#parse("partials/footer.html")